@echo off&setlocal enabledelayedexpansion

set num[1]=12
set num[2]=13
set num[3]=11
set num[4]=5
set num[5]=67
for /l %%i in (1 1 5) do (
	for /l %%a in (1 1 5) do (
		if !num[%%a]! gtr !num[%%i]! (
			set tmp=!num[%%i]!
			set num[%%i]=!num[%%a]!
			set num[%%a]=!tmp!
		)
	)
)

for /l %%i in (1 1 5) do echo !num[%%i]!
pause>nul 